<?php echo $this->load->view('meta'); ?>
<link rel="stylesheet" href="<?=base_url()?>css/admin.css" type="text/css" media="screen" />
<title>xa-ncsu | admin - content</title>
<link rel="stylesheet" href="<?=base_url()?>css/impromptu.css" type="text/css" media="screen" />
<script type="text/javascript" src="<?=base_url();?>js/jquery-impromptu.1.2.js"></script>
<script type="text/javascript" src="<?=base_url();?>js/jquery.jeditable.pack.js"></script>
<?php echo $this->load->view('header'); ?>
<h3>Prayer Submissions</h3>
<?php if ($prayers->num_rows() > 0): ?>
<table>
<tr>
	<th>prayer</th>
	<th>email</th>
	<th>date</th>
</tr>
<?php foreach ($prayers->result() as $row) : ?>
<tr>
	<?php $attributes = 'title="Prayer Submission" class="thickbox" name="prayer"'?>
	<?php $row->prayer = ($row->prayerLength>20) ? $row->prayer .'&hellip;' : $row->prayer ?>
	<td><?= anchor("dashboard/prayer/$row->id",$row->prayer,$attributes) ?></td>
	<td><?= ($row->anonymous=='yes') ? 'anonymous' : $row->email?></td>
	<td><?php echo date("l, F n, Y",strtotime($row->date)) ?></td>
</tr>
<?php endforeach; ?>
</table>
<?php else: ?>
<p>No submissions, yet.</p>
<?php endif; ?>